package com.woniu.product.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniu.product.entity.ChargePileQuery;
import com.woniu.product.entity.ChargePileStatistics;
import com.woniu.product.pojo.ChargePile;
import com.woniu.product.pojo.ChargeStation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.Map;

/**
 * <p>
 * 充电站表 Mapper 接口
 * </p>
 *
 * @author LiFangyu
 * @since 2023-02-20
 */
public interface ChargePileMapper extends BaseMapper<ChargePile> {

    Page<ChargePileStatistics> queryChargePileStatistics(IPage<ChargePileStatistics> page, @Param("ChargePileQuery") ChargePileQuery chargePileQuery);

    Map<String , Integer>  selectPileUsageDuration(@Param("id") String id, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
}
